<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <canvas
      id="myCanvas"
      width="500"
      height="500"
      style="border: 1px solid #d3d3d3"
    >
      您的浏览器不支持 HTML5 canvas 标签。</canvas
    >
  </body>
  <script>
    var c = document.getElementById('myCanvas')
    var ctx = c.getContext('2d')

  </script>
</html>
